import request from "/utils/request";
export const getQuestionsList = async (type) => {
    return await request({
        url:`/questions/getTypeTitleList/${type}`
    });
};
export const submissionW1 = async (question) => {
    return await request({
        url:`/hello/testInvoke1/${question}`
    });
};
export const submissionW2 = async (question) => {
    return await request({
        url:`/hello/testInvoke2/${question}`
    });
};
export const getQuestions = async (id) => {
    return await request({
        url:`/questions/getQuestion/${id}`
    });
};

export const getTypeTitleList = async (type) => {
    return await request({
        url:`/questions/getTypeTitleList/${type}`
    });
};
export const getSubmissionList = async (type) => {
    return await request({
        url:`/submission/getList/${type}`
    });
};
export const submission = async (data) => {
    return await request({
        url: "/submission/add",
        method:"POST",
        data
    });
};

